package com.atguigu.petstore.shop.service;

import com.atguigu.petstore.shop.entity.ShopProduct;
import com.atguigu.petstore.shop.vo.ProductPublishVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author lfy
* @description 针对表【shop_product(商城-商品表)】的数据库操作Service
* @createDate 2023-09-24 16:46:17
*/
public interface ShopProductService extends IService<ShopProduct> {

    void publishProduct(ProductPublishVo vo);

    /**
     * 获取秒杀商品
     * @return
     */
    List<ShopProduct> getSeckillProduct();

    /**
     * 获取排行榜商品
     * @return
     */
    List<ShopProduct> getRankProduct();
}
